using System;
using System.Collections.Generic;
using System.Text;

namespace Dll.Essences
{
  public   class Orders
    {
        int id;
        int userID;
        DateTime date;
        int number;
        int structUnitID;
        string numberString;
        public Orders()
        {

        }

        public Orders(int Id, int UserID,int number, int structUnitID, DateTime Date)
        {
            id = Id;
            userID = UserID;
            this.number = number;
            this.structUnitID = structUnitID;
            date = Date;
        }

        public string NumberString
          {
              get
              {
                  if (numberString==null || numberString==string.Empty || numberString == "")
                      return Convert.ToString(number);
                  else
                      return  numberString;
              }
              set
              {
                  numberString = value;
              }
          } 
          
        public int Id
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }
        }

        public int Number
      {
          get
          {
              return number;
          }
          set
          {
              number = value;
          }
      }

        public int StructUnitID
      {
          get
          {
              return structUnitID;
          }
          set
          {
              structUnitID = value;
          }
      }

        public int UserId
        {
            get
            {
                return userID;
            }
            set
            {
                userID = value;
            }
        }

        public DateTime Date
        {
            get
            {
                return date;
            }
            set
            {
                date = value;
            }
        }

    }
}
